package BLL;

import DAL.SubjectDAL;
import Entities.TblSubject;
import java.util.List;

public class SubjectBLL {

    public SubjectDAL dalObj;

    public boolean add(TblSubject obj){
        dalObj = new SubjectDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblSubject obj){
        dalObj = new SubjectDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblSubject obj){
        dalObj = new SubjectDAL();
        return dalObj.delete(obj);
    }

    public TblSubject getById(int id){
        dalObj = new SubjectDAL();
        return dalObj.getById(id);
    }

    public List<TblSubject> getAll(){
        dalObj = new SubjectDAL();
        return dalObj.getAll();
    }

    public List<TblSubject> getSubjectBySemesterId(int Id) {
        dalObj = new SubjectDAL();
        return dalObj.getSubjectBySemesterId(Id);
    }
}
